package com.example.listviewtest;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class ItemDetailActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.item_detail_layout);
        TextView textview1=(TextView) findViewById(R.id.textveiw_1);
        Intent intent=getIntent();
        textview1.setText(intent.getStringExtra("电脑名称"));
    }
}